using SalesPages.DomainModel;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;
namespace SalesPages.EntityFrameworkRepository.Mapping
{
    public class SurveyQuestionType_lkpMap : EntityTypeConfiguration<SurveyQuestionType_lkp>
    {
        public SurveyQuestionType_lkpMap()
        {
            // Primary Key
            this.HasKey(t => t.Type_id);

            // Properties
            this.Property(t => t.TypeName)
                .IsRequired()
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("SurveyQuestionType_lkp");
            this.Property(t => t.Type_id).HasColumnName("Type_id");
            this.Property(t => t.TypeName).HasColumnName("TypeName");
            this.Property(t => t.InsertDate).HasColumnName("InsertDate");
            this.Property(t => t.UpdateDate).HasColumnName("UpdateDate");
        }
    }
}
